<?php
/**
 * 
 * Static Methods
 *
 */
class Method
{
	
	public static function getBidHistoryUserTableName($id){

		$checkNumber = $id%10000;
		if($checkNumber == 0){
			$tablenamenum = 20;
		}
		else{
			$tablenamenum = floor(($checkNumber-1)/500)+1;
		}
		$tablename = "bid_history_user_".$tablenamenum;

		return $tablename;

	}
	
	public static function createUniqid()
	{
	    $tempStr = md5(time());
	    return $tempStr[mt_rand(0,31)].uniqid();
	}

}